package org.suk.dp.responsibilityChain.declare;

import java.text.MessageFormat;

/**
 * Description:具体处理类 <br/>
 * @version V1.0  2017/6/22 9:59  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class ConcreteHandler3 extends Handler {
    @Override
    public void handleRequest(int request) {
        if(request >= 20 && request < 30){
            System.out.println(MessageFormat.format("ConcreteHandler3处理请求{0}",request));
        }else if(null != this.successor){
            successor.handleRequest(request);
        }
    }
}
